/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package plar;

/**
 *
 * @author spok
 */
public class Property {

    public String name;
    boolean exist;
    public Level level;
    public Property()
    {
    exist=true;
   
    }
       public Property(String n)
    {
    this();
   name = n;
    }
    public boolean doElementProperty(Element e1)
    { 
        boolean res=false;
          for(Element e2: level.elements)
         {
             if(e1!=e2)
                 res=res||doElementsProperty(e1,e2);
         }
          return res;
    }
    
    public boolean doElementsProperty(Element e1,Element e2)
    {
           return true;
    }
    public boolean doProperty()
    {
        boolean res=false;
         for(Element e1: level.elements)
         {
             res=res||doElementProperty(e1);
         }
         return true;
    }

}
